package com.githan.phone_store_demo.entity;

import lombok.Data;
import org.springframework.dao.DataAccessException;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author https://github.com/Han56
 * @date 2021/4/19 9:39
 */
@Data
@Entity
public class OrderMaster {

    //因为订单Id实际业务需求非常庞大，Integer类型必然会引起溢出，所以使用String类型可以避免
    @Id
    private String orderId;
    private String buyerName;
    private String buyerPhone;
    private String buyerAddress;
    private Integer phoneId;
    private String phoneName;
    private Integer phoneQuantity;
    private String phoneIcon;
    private Integer specsId;
    private String specsName;
    private BigDecimal specsPrice;
    private BigDecimal orderAmount;
    private Integer payStatus;
    private Date createTime;
    private Date updateTime;

}
